package cn.plushine.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@ApiModel(description = "盘点订单")
public class Check {
    @ApiModelProperty(value = "盘点订单编号")
    private String id;
    // 日期格式化
    @ApiModelProperty(value = "日期")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date date;
    @ApiModelProperty(value = "盘点订单记录")
    private List<CheckItem> checks;
    @ApiModelProperty(value = "货物总数")
    private int sum;
    @ApiModelProperty(value = "订单状态")
    private int flag;
    // 日期格式化
    @ApiModelProperty(value = "完成日期")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date finishDate;
    @ApiModelProperty(value = "仓库名称")
    private String warehouse;
    @ApiModelProperty(value = "分区名称")
    private String area;
    @ApiModelProperty(value = "库位名称")
    private String position;
    @ApiModelProperty(value = "仓库id")
    private int warehouseId;
    @ApiModelProperty(value = "分区id")
    private int areaId;
    @ApiModelProperty(value = "库位id")
    private int positionId;
    @ApiModelProperty(value = "盘点主题")
    private String topic;
}
